import { Button, ErrorBlock, Space } from 'antd-mobile';
import { useHistory } from 'react-router-dom';

export default function NotFound() {
  const history = useHistory();
  return (
    <div>
      <ErrorBlock fullPage status="empty">
        <Space>
          <Button onClick={() => history.push('/')} color="primary">
            返回首页
          </Button>
          <Button onClick={() => history.goBack()} color="warning">
            返回上一步
          </Button>
        </Space>
      </ErrorBlock>
    </div>
  );
}
